var ErrorShowType;

(function (ErrorShowType) {
  ErrorShowType[ErrorShowType["SILENT"] = 0] = "SILENT";
  ErrorShowType[ErrorShowType["WARN_MESSAGE"] = 1] = "WARN_MESSAGE";
  ErrorShowType[ErrorShowType["ERROR_MESSAGE"] = 2] = "ERROR_MESSAGE";
  ErrorShowType[ErrorShowType["OFFLINE_MESSAGE"] = 3] = "OFFLINE_MESSAGE";
  ErrorShowType[ErrorShowType["NOTIFICATION"] = 4] = "NOTIFICATION";
  ErrorShowType[ErrorShowType["REDIRECT"] = 9] = "REDIRECT";
})(ErrorShowType || (ErrorShowType = {}));

var ErrorCode;

(function (ErrorCode) {
  ErrorCode["UNKNOWN"] = "-1";
  ErrorCode["UNAUTHORIZED"] = "401";
  ErrorCode["EXPIRED_AUTHORIZED"] = "402";
})(ErrorCode || (ErrorCode = {}));

var ErrorCodeConfigs = {
  '-1': {
    showType: ErrorShowType.OFFLINE_MESSAGE,
    message: '网络请求异常'
  },
  '401': {
    showType: ErrorShowType.SILENT,
    message: '用户没有权限（令牌、用户名、密码错误）。'
  },
  '402': {
    showType: ErrorShowType.SILENT,
    message: '用户没有权限（访问令牌没有、过期、无效）。'
  }
};
export { ErrorShowType, ErrorCode, ErrorCodeConfigs };